{extend name="public:_base" /}
{block name="js"}
{load href="__STATIC__/admin/hui/lib/My97DatePicker/4.8/WdatePicker.js" /}
{/block}
{block name="main"}
<div class="page-container">

    <form name="" method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" name="start_time" id="countTimestart" onfocus="selecttime(1)" class="input-text Wdate" placeholder="开始时间"
                   style="width:140px;" value="{$Think.get.start_time}" size="17" class="date" readonly>
            - <input type="text" name="end_time" id="countTimeend" onfocus="selecttime(2)" class="input-text Wdate" placeholder="结束时间"
                     style="width:140px;" value="{$Think.get.end_time}" size="17" class="date" readonly>

            <input type="text" name="title" placeholder="标题" style="width:250px" value="{$Think.get.title}" class="input-text">
            <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜咨询</button>
        </div>
    </form>
    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l">
        <a class="btn btn-primary radius" onclick="edit('添加','{:url('Product/add',['addcid'=>$addcid])}')" href="javascript:">
        <i class="Hui-iconfont">&#xe600;</i> 添加</a></span> <span class="r">共有数据：<strong>{$num}</strong> 条</span>
    </div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="40">ID</th>
                <th width="100">名称</th>
                <th width="100">图片</th>
                <th width="100">排序</th>
                <th width="100">推荐</th>
                <th width="100">状态</th>
                <th width="100">创建时间</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name="list" id="vo" empty="<tr><td colspan='100'>暂无数据</td></tr>"}
                <tr class="text-c va-m">
                    <td>{$vo.id}</td>
                    <td>
                        {$vo.title}
                    </td>
                    <td>
                        <img src="__ROOT__/uploads/{$vo.image ?'image/md_'.$vo.image: 'sm_nopic.jpg'}" width="150px" height="150px"/>
                    </td>
                    <td>
                       {$vo.sort|sortby=$vo.id}
                    </td>
                    <td>
                        {$vo.tuijian|tuijian=$vo.id}
                    </td>
                    <td>
                        {$vo.status|status=$vo.id}
                    </td>

                    <td>
                        {$vo.create_time}
                    </td>
                    <td class="td-manage">
                        <a style="text-decoration:none" class="btn btn-xs btn-success" onClick="edit('编辑','{:url('Product/edit',['id'=>$vo.id])}','10001')" href="javascript:" title="编辑">编辑</a>
                        <a style="text-decoration:none" class="btn btn-xs btn-danger" onClick="del(this,'{:url('Product/del',['id'=>$vo.id])}','10001')" href="javascript:" title="删除">删除</a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        {$list->render()}
    </div>
</div>
</div>
{/block}